package com.xmy.study.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 数学应通关数-(正确、修正)
 * </p>
 *
 * @since 2024-02-20
 */
@TableName("cha_plan")
@Data
public class ChaPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    
    @TableId(type = IdType.NONE)
    private Long id;

    
    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    
    @ApiModelProperty("季度")
    private Integer quarterNum;


    @ApiModelProperty("学员id")
    private Long studentId;

    @ApiModelProperty("年级")
    private Integer yearClassId;


    @ApiModelProperty("备注")
    private String remark;


    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;


    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;


    @ApiModelProperty("分班表id")
    private Long studentGradeId;

    @ApiModelProperty("应通关-正确题数")
    private Integer rightNum;

    @ApiModelProperty("应通关-修正题数")
    private Integer amendNum;

    @ApiModelProperty("课次-另做总人数返回给账务的记录")
    private Integer lessonNum;

    @ApiModelProperty("上课日期")
    private LocalDate schoolDate;

    @ApiModelProperty("应通关")
    private Integer lowestShutnum;

    @ApiModelProperty("任务表id")
    private Long eduTaskId;

    @ApiModelProperty("上课老师")
    private Long teacherId;

    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("课程类别")
    private Long courseTypeId;

}
